package com.bookstore.service;

import java.util.List;

import com.bookstore.dao.CategoryDAO;
import com.bookstore.dao.DAOFactory;
import com.bookstore.model.Category;

public class CategoryServiceImpl implements CategoryService {

	@Override
	public List<Category> findAll() throws Exception {
		CategoryDAO categoryDAO = DAOFactory.getCategoryDAO();
		return categoryDAO.findAll();
	}

}
